package cn.tedu.dental.admin.mapper;

import cn.tedu.dental.admin.pojo.dto.DoctorQuery;
import cn.tedu.dental.admin.pojo.entity.Doctor;
import cn.tedu.dental.admin.pojo.vo.DoctorVO;
import cn.tedu.dental.user.pojo.dto.UserQuery;
import cn.tedu.dental.user.pojo.vo.UserVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {

    List<DoctorVO> selectDoctor(DoctorQuery doctorQuery);

    DoctorVO doctorLogin(String name);

    void insertDoctor(Doctor doctor);

   DoctorVO selectByUsername(String username);

    List<UserVO> selectUser(UserQuery userQuery);

    DoctorVO selectByDoctorId(DoctorQuery doctorQuery);

    void updateDoctor(Doctor doctor);

    void deleteDoctor(Long doctorId);


    void updateDoctorPassword(DoctorVO doctorVO);
}
